package com.javaee.term.mapper;

import com.javaee.term.model.ContactDetail;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.BaseMapper;

import java.util.List;

public interface ContactDetailMapper extends BaseMapper<ContactDetail> {

    @Select("select * from contact_detail where contact_id= #{contactId}")
    List<ContactDetail>  selectByContactId(String contactId);
    @Select("select * from contact_detail where contact_id= #{contactId} and product_id= #{productId}")
    ContactDetail selectByContactProduct(String contactId,String productId);

}